"use strict";

const log = require("npmlog");

log.heading = "imooc";
log.headingStyle = { fg: "grey", bg: "white" };

log.level = process.env.LOG_LEVEL === "debug" ? process.env.LOG_LEVEL : "info";

log.addLevel("success", 3000, { fg: "green", bold: true });

module.exports = log;
